import { h } from 'vue';
import { AdColumn } from '@/components/AdTable';
import { expandAndToString } from '@/utils/common';
import { BasicUpload } from '@/components/Upload';
import { TableImg } from '@/components/Table';
import { uploadApi, deleteApi } from '@/api/sys/upload';
import { FileInfo } from '@/components/Upload/src/typing';
import { ImageSelector } from '@/components/ImageSelector';
import { List } from '@/components/Linqts';
import { isArray, isNull, isObject, isString } from '@/utils/is';
import FileUpload from '@/components/Form/src/components/FileUpload.vue';
import { debug } from 'console';
import { getProductTypeEnumSchema } from '@/views/vinno/products/product/product.enum';

const productTypeEnumSchema = getProductTypeEnumSchema();
export const columns: AdColumn[] = [
  {
    title: '主键',
    dataIndex: 'Id',
    dataType: 'guid',
    width: 300,
    defaultHidden: true,
    filterable: false,
    sorter: true,
    formVisible: true,
    formEditable: false,
  },
  {
    title: '产品类型',
    dataIndex: 'Type',
    dataType: 'enum',
    width: 150,
    formVisible: true,
    formEditable: true,
    required: true,
    filterable: true,
    sorter: false,
    enumData: productTypeEnumSchema,
  },
  {
    title: '姓名',
    dataIndex: 'Name',
    dataType: 'string',
    width: 150,
    formVisible: true,
    formEditable: true,
    required: true,
    filterable: true,
    sorter: true,
  },
  {
    title: '手机号',
    dataIndex: 'Phone',
    dataType: 'mobile',
    width: 150,
    formVisible: true,
    formEditable: true,
    required: true,
    filterable: true,
    sorter: true,
  },
  {
    title: '邮箱',
    dataIndex: 'Email',
    dataType: 'email',
    width: 150,
    formVisible: true,
    formEditable: true,
    required: true,
    filterable: true,
    sorter: true,
  },
  {
    title: '区域名称',
    dataIndex: 'AreaCity',
    dataType: 'string',
    width: 150,
    formVisible: true,
    formEditable: true,
  },
  {
    title: '公司/单位',
    dataIndex: 'Company',
    dataType: 'string',
    width: 150,
    formVisible: true,
    formEditable: true,
  },
  {
    title: '职位',
    dataIndex: 'Position',
    dataType: 'string',
    width: 150,
    formVisible: true,
    formEditable: true,
  },
  {
    title: '其他需求',
    dataIndex: 'Requirement',
    dataType: 'text',
    width: 150,
    formVisible: true,
    formEditable: true,
  },
  {
    title: '创建时间',
    dataIndex: 'CreatedTime',
    dataType: 'datetime',
    width: 200,
    formVisible: true,
    formEditable: false,
    required: false,
    filterable: true,
    sorter: true,
  },
];

export interface InputDto {}

export interface OutputDto {}
